﻿<UserControl x:Class="MyMeetup.Controls.AlbumPicker"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    d:DesignHeight="480" d:DesignWidth="480">
    
    <Grid x:Name="LayoutRoot" Background="{StaticResource PhoneChromeBrush}">
        <ListBox Name="albumList" Margin="0,0,0,0">
            <ListBox.ItemTemplate>
                <DataTemplate>
                    <Button BorderBrush="Azure" Width="460" Height="120" Style="{StaticResource ListItemsButtons}" Click="AlbumClick" >
                        <Button.Content>
                            <StackPanel Orientation="Horizontal" Height="80" Width="400">
                                <Image Source="{Binding Photo_Url}" Width="100" Height="100"/>
                                <StackPanel Orientation="Vertical">
                                    <TextBlock Width="300" Text="{Binding AlbumTitle}"   Padding="10,0,0,0" FontSize="26" />
                                    <TextBlock Width="300" Text="{Binding DateTime}"   Padding="10,0,0,0" FontSize="20" />
                                </StackPanel>

                            </StackPanel>
                        </Button.Content>
                    </Button>
                </DataTemplate>
            </ListBox.ItemTemplate>
        </ListBox>

    </Grid>
</UserControl>
